<?php

class AuctionModel extends CommonModel {

	protected $_validate = array(
		array('name','require','竞拍名称不能为空','regex','',2),
		array('base_price','number','起拍价只能为数字','regex','',2),
		array('amplitude','number','加价幅度只能为数字','regex','',2),
		array('buyout_price','number','一口价只能为数字','regex','',2),
		array('pre_pay','number','预付费只能为数字','regex','',2),
	);

	protected $_auto = array (
		array('begin_time','localStrToTime',3,'function'),
		array('end_time','localStrToTime',3,'function'),
		array('validity_begin_time','localStrToTime',3,'function'),
		array('validity_end_time','localStrToTime',3,'function'),
		array('update_time','gmtTime',3,'function')
	);

}

?>